import request from "@/utils/request";

// 机器信息
export function listRentMachine(query) {
  return request({
    url: "/rent/rentMachine/list",
    method: "get",
    params: query,
  });
}

// 机器信息(包含抄表)
export function listRentMachineMeter(query) {
  return request({
    url: "/rent/rentMachine/meterList",
    method: "get",
    params: query,
  });
}

// 机器信息(只显示在租的)
export function rentMchineList(query) {
  return request({
    url: "/rent/rentMachine/rentMchineList",
    method: "get",
    params: query,
  });
}

// 计算费用(按合同)
export function meterPrice(query) {
  return request({
    url: "/rent/rentMachine/meterPrice",
    method: "get",
    params: query,
  });
}

// 计算费用(按机器)
export function meterMachinePrice(query) {
  return request({
    url: "/rent/rentMachine/meterMachinePrice",
    method: "get",
    params: query,
  });
}

// 库存机器，只有入库，没有出库也没有建立合同的机器
export function stockMachineList(query) {
  return request({
    url: "/rent/rentMachine/stockMachineList",
    method: "get",
    params: query,
  });
}

// 已建立合同还未出库的机器
export function contractMachineList(query) {
  return request({
    url: "/rent/rentMachine/contractMachineList",
    method: "get",
    params: query,
  });
}

// 合同到期还未入库的机器
export function listExpireMachine(query) {
  return request({
    url: "/rent/rentMachine/expireMachineList",
    method: "get",
    params: query,
  });
}
